package com.lib.fastkit.http.ok.interceptor;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

public class NetInterceptor implements Interceptor {
    @Override
    public Response intercept(Chain chain) throws IOException {

        Request request = chain.request().newBuilder()
//                .addHeader("Connection", "keep-alive")
                .addHeader("Connection", "close")
                .build();

        return chain.proceed(request);
    }
}
